<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<ui:composition template="/layouts/application.xhtml" >
	<ui:param name="bean" value="#{ManageUsuario}" />
	
	<ui:define name="breadcrumb_content">
		<h:outputLink value="/cpp-web/pages/cadastros.jsf" title="Cadastros">Cadastros</h:outputLink>
			<h:outputText> » </h:outputText>
		<h:outputLink value="#" styleClass="active">
			<h:outputText value="Importando Usuários" ></h:outputText>
		</h:outputLink>
	</ui:define>

	<ui:define name="quick_links">
		<ui:include src="/layouts/cadastros_links.xhtml" />
	</ui:define>

	<ui:define name="main_content">
	
		<h:form id="formInserirAlterar" enctype="multipart/form-data">
			<fieldset id="dados">
				<span class="warning">* os itens marcados são obrigatórios</span><br />
				<span class="">Apenas usuários com perfil de Professor serão criados, edite os perfis posteriormente.</span>
					<ul>
						<li><h:outputLabel value="Arquivo CSV:" ><span class="required">*</span></h:outputLabel>
							<t:inputFileUpload value="#{bean.csv}"
							storage="file"></t:inputFileUpload>
						</li>
					</ul>
				</fieldset>
			<h:commandButton styleClass="enviar" action="#{bean.incluirLot}" value="Importar"  
				 ></h:commandButton>
			<h:commandButton styleClass="enviar" action="#{bean.exibirPesquisa}" value="Cancelar" immediate="true"></h:commandButton>		
		</h:form>
		
	</ui:define>	
</ui:composition>

</html>
